import axios from '../../../axios';
const SALES = "/sales";

export default {
    // 获取销售员数据
    getSales(params) {
        return axios({
            url: SALES + "/getSales",
            method: "get",
            params
        })
    },
    // 新增销售员
    addSales(data) {
        return axios({
            url: SALES + "/addSales",
            method: "post",
            data
        })
    },
    // 删除销售员
    deleteSales(data) {
        return axios({
            url: SALES + "/deleteSales",
            method: "post",
            data
        })
    },
    //修改销售员
    modifySales(data) {
        return axios({
            url: SALES + "/modifySales",
            method: "post",
            data
        })
    },
}
